package com.styytech.dadabao.api.requestresult;

import com.styytech.dadabao.api.response.AbstractResponseResult;

/**
 * Created by User on 2015/8/24.
 */
public class CommonResult extends RequestResult {
    /**
     * 构造函数
     *
     * @param httpResponseResult
     */

    public CommonResult(AbstractResponseResult httpResponseResult) {
        super(httpResponseResult);

    }

    @Override
    public void doBusiness() {
        super.doBusiness();
        if (super.isSuccess() && httpResponseResult != null) {
            if(super.getRows()!=null){
                httpResponseResult.executeSuccess(super.getRows());
            }else{
                httpResponseResult.executeSuccess(super.getResponseData());
            }

        }
    }

}


